package com.zy.business.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zy.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description  加班实体类
 * @Author  zhangxiaojia
 * @Date 2020-04-07
 */

@Data
@EqualsAndHashCode
@ApiModel
@TableName("tb_overwork_audit" )
public class TbOverworkAudit extends BaseEntity {

	/**
	 * 主键
	 */
   	 @TableId(value = "AUDIT_ID")
	 @ApiModelProperty
	private Long auditId;

	/**
	 * 加班申请id
	 */
   	 @TableField("OVERWORK_ID" )
	 @ApiModelProperty(value ="加班申请id",required = true)
	private Long overworkId;

	/**
	 * 状态0不通过1通过
	 */
	@TableField("STATUS")
	@ApiModelProperty(value ="0未审核1不通过2通过")
	private Integer status;

	/**
	 * 原因
	 */
	@ApiModelProperty(value = "原因")
	@TableField(value = "REASON",updateStrategy = FieldStrategy.IGNORED)
	private String reason;

	/**
	 * 审核人id
	 */
	@TableField("AUDIT_USER_ID")
	@ApiModelProperty(value ="审核人id",required = true)
	private Long auditUserId;

	/**
	 * 下级审核人id
	 */
	@TableField("next_user_id")
	@ApiModelProperty(value ="下级审核人id",required = true)
	private Long nextUserId;

	/**
	 * 审核人名字
	 */
	@TableField(exist = false)
	@ApiModelProperty(hidden = true)
	private String auditUser;

	/**
	 * 审核日期
	 */
	@TableField("AUDIT_DATE")
	@ApiModelProperty(hidden = true)
	@JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
	private Date auditDate;

	/**
	 * 删除标志0未删除1已删除
	 */
	@TableLogic
	@TableField(value = "del_flag")
	@ApiModelProperty(hidden = true)
	private String delFlag;

}
